/**
 * @author 王斌
 */
$(document).ready(function(){
	initEvent();
	drawCharts();
});

//初始化事件
initEvent = function(){

}

drawCharts = function(){
    var line1 = [['data1', 7], ['data2', 9], ['data3', 15], 
  ['data4', 12], [' data5', 3], 
  ['data6', 6], ['data7', 18],['data8', 10],['data9', 16],['data10', 4],['data11', 1]];
 
  var plot1 = $.jqplot('chart', [line1], {
    title: '测试数据',
    series:[{renderer:$.jqplot.BarRenderer}],
    axesDefaults: {
        tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
        tickOptions: {
          angle: -30,
          fontSize: '11px'
        }
    },
    axes: {
      xaxis: {
        renderer: $.jqplot.CategoryAxisRenderer
      }
    }
  });
}